package com.ty.day4;

/**
 * Created by IntelliJ IDEA.
 * Author : txy
 * Create 2023/10/31 16:16
 */
public class Seven {
    public static void main(String[] args) {
        int a, count = 0;
        for (int i = 1; i < 5; i++) { //百位上的数
            a = 1;//个位上的数，每次从1开始
            for (int j = 1; j < 5; j++) {//十位上的数
                if (i != j && a != j && i != a) {
                    count++;
                    System.out.println("" + i + j + a);
                }
                if (a < 4) {
                    a++;
                    j--;
                } else {
                    a = 1;
                }
            }
        }
        System.out.println("有：" + count + "个");
    }
}
